/**
 * @author  wyj
 * @description 采购页面的接口
 */

import Ajax from "./Ajax";

/**
 * 
 * @param {obj} params 采购列表接口
 * @returns 
 */
export const purchaseApi=(params)=>Ajax({
  url:'/purchase/list',
  method: 'GET',
  params
})

/**
 * 
 * @param {*} data 采购流程接口 
 * @returns 
 */
export const purchFlow=(data)=>Ajax({
    url:'/purchase/flow',
    data
})

/**
 * 
 * @param {id} id 采购商品详情接口
 * @returns 
 */
export const purchaseInfo=(id)=>Ajax({
   url:'/purchase/info',
   method:'GET',
   params:{id}
})
/**
 * 
 * @param {page,size} proObj  项列表接口
 * @returns 
 */
export const proDataApi=(params)=>Ajax({
 url:'/project/list',
 method:'GET',
 params,
})


export const materDataApi=()=>Ajax({
  url:'/material/list',
  method:'GET',
 })